﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="splist.aspx.cs" Inherits="lb_shenpi_splist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
<!--
.style36 {	font-size: 13px;
	color: #FFFFFF;
	font-weight: bold;
}
.style5 {color: #FFFFFF}
-->
</style>
<link href="../css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style37 {color: #000000}
.style38 {color: #FF0000}
.style39 {font-size: 12px}
-->
</style>
</head>
<body>
<div align="center">  
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="6" height="21"><img src="../img/bbs/leftlin1.gif" width="6" height="21"></td>
    <td width="936" bgcolor="#5AAE18"><div align="center"><span class="style5"><span class="style13 style5 style6"><span class="style36">审 批 列 表</span></span></span></div></td>
    <td width="6" height="21"><img src="../img/bbs/rightlin1.gif" width="6" height="21"></td>
  </tr>
</table>
  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5EAE19">
    <tr>
      <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="6" colspan="5"></td>
          </tr>
          
        <tr>
          <td style="width: 13px">&nbsp;</td>
          <td><strong>审批事由</strong></td>
          <td>&nbsp;</td>
          <td><div align="left"><strong>状　态</strong></div></td>
          <td width="25%"><div align="left"><strong>时 间</strong></div></td>
        </tr>
        <%
              //session 取出当前登陆用户
              COM.OA.Entity.users u = (COM.OA.Entity.users)Session["loginuser"];
              
              if (u == null)
              {
                  this.Response.Write(string.Format(GetRedirect.REDIRECT, "../login.aspx"));
                  this.Response.End();
              }
              string where = "ex_u_id="+u.u_id;
              System.Collections.Generic.IList<COM.OA.Entity.examine> elist =
                  COM.OA.BLL.examineBLL.Select(where);
              foreach(COM.OA.Entity.examine ex in elist)
              {
                  string state = "";
                  string stateImg = "";
                  switch (ex.ex_state)
                  {
                      case 0: state = "等待受理"; stateImg = "../gxxz/img/sp/3.gif";
                         break;
                     case 1: state = "受理中"; stateImg = "../gxxz/img/sp/1.gif";
                         break;
                     case 2: state = "中止"; stateImg = "../gxxz/img/sp/3.gif";
                         break;
                     case 3: state = "终止"; stateImg = "../gxxz/img/sp/4.gif";
                         break;
                     case 4: state = "办结"; stateImg = "../images/gx/cs-1.gif";
                         break;
                      
                  }
              
           %>

        <tr bgcolor="#FFFFFF" onMouseOver = "this.style.backgroundColor = '#EEEEEE'" onMouseOut = "this.style.backgroundColor = ''">
            <td style="width: 13px"><div align="center"><img src="<%=stateImg %>" width="12" height="14"></div></td>
            <td width="59%"><a href="openshenpi.aspx?id=<%=ex.ex_id %>"><%=ex.ex_applycontent %></a></td>
            <td width="5%"><a href="updateshenpi.aspx?id=<%=ex.ex_id %>">修改</a></td>
            <td width="9%">
              <div align="left">  
                <%=state %><img src="../gxxz/img/sp/3.gif" width="13" height="13">              
              </div></td>
            <td width="25%">
              <span class="style37"><%=ex.ex_applytime %></span>
              </td>
        </tr>
        <%
              }         
          %>
      </table></td>
    </tr>
  </table>
</div>

<p align="center" class="style39">
  
  <br>
  <a href="javascript:history.go(-1)">返回
  </a><br>
</p>
</body>
</html>